package com.huluobo.jetpackdemo

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

/**
 *  Created by LC on 2024/11/12.
 */
class ADViewModel : ViewModel() {
    var timing: Long = 15000L

    val timingResult = MutableLiveData<Long>()

    fun setTimingResult(timing: Long) {
        //运行在主线程
        timingResult.value = timing
        //运行在子线程
        timingResult.postValue(timing)
    }
}